import { createApp } from 'vue'
import App from '@/App.vue'
import '@/styles/index.less'
import router from './router'
import pinia from './store'
import globalcomponent from '@/components'
import 'element-plus/theme-chalk/dark/css-vars.css'
import { isHasButton } from './directive/has'
// import axios from 'axios'

// console.log(import.meta.env)
// axios({
//   url: '/api/user/login',
//   method: 'post',
//   data: {
//     username: 'admin',
//     password: '111111'
//   }
// })

const app = createApp(App)
app.use(router)
import './permission'
app.use(pinia)
app.use(globalcomponent)
isHasButton(app)
app.mount('#app')
